package com.hjf.object;

public class Test {
    public static void main(String[] args) {
        // 面向对象编程快速入门
        // 创建一个学生对象，封装学生A的数据
        Student s1 = new Student();
        s1.name = "hjf";
        s1.chinese = 100;
        s1.english = 100;
        s1.printTotalScore();
        s1.printAverageScore();

        Student s2 = new Student();
        s2.name = "sys";
        s2.chinese = 80;
        s2.english = 80;
        s2.printTotalScore();
        s2.printAverageScore();

        s1.printPass(60);
        s2.printPass(60);
    }
}
